public class l {
    public static void main(String[] args) {
        int[] arr = new int[]{
                9, 1, 3, 4, 54, 56, 23, 22, 20, 43, 45, 78
        };
        for (int i : arr) {
            if (i % 6 == 0) {
                System.out.println(i);
            }
        }

    }
}
